package com.valuegroup.smarttodo.data.vo;

import com.valuegroup.smarttodo.data.model.HabitOrder;

import java.io.Serializable;
import java.util.Date;

public class HabitOrderVo implements Serializable {
    private Long id;
    private String title;

    // 开始时段
    private Date startTime;
    // 结束时段
    private Date endTime;

    // 开启提醒
    private Boolean openRemind;

    // 重复间隔（开始至结束时段内，提醒间隔）
    private Integer remindInterval;

    public static HabitOrderVo convert(HabitOrder o) {
        HabitOrderVo v = new HabitOrderVo();
        v.setEndTime(o.getEndTime());
        v.setStartTime(o.getStartTime());
        v.setTitle(o.getTitle());
        v.setOpenRemind(o.getOpenRemind());
        v.setRemindInterval(o.getRemindInterval());
        return v;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Boolean getOpenRemind() {
        return openRemind;
    }

    public void setOpenRemind(Boolean openRemind) {
        this.openRemind = openRemind;
    }

    public Integer getRemindInterval() {
        return remindInterval;
    }

    public void setRemindInterval(Integer remindInterval) {
        this.remindInterval = remindInterval;
    }
}
